/*
 *------------------------------------------------------------------------------
 * @File      :    ei_mai_vdec.h
 * @Date      :    2021-4-8
 * @Author    :    lomboswer <lomboswer@lombotech.com>
 * @Brief     :    Media Interface for MADP(Media Development Platform).
 *
 * Copyright (C) 2020-2021, LomboTech Co.Ltd. All rights reserved.
 *------------------------------------------------------------------------------
 */

#ifndef __EI_MAI_VDEC_H__
#define __EI_MAI_VDEC_H__

#include "ei_mai_vdec_define.h"

EI_S32 EI_MAI_VDec_Init(EI_HANDLE Handle, EiVdecMediaInfo* pInfo);

EI_S32 EI_MAI_VDec_Deinit(EI_HANDLE hHandle);

EI_S32 EI_MAI_VDec_Start(EI_HANDLE hHandle);

EI_S32 EI_MAI_VDec_Stop(EI_HANDLE hHandle);

EI_S32 EI_MAI_VDec_Flush(EI_HANDLE hHandle, eVdecBufType type);

EI_S32 EI_MAI_VDec_RegisterMSGCallback(EI_HANDLE hHandle,
    EI_MAI_VDEC_MSG_Callback pfnMsgCallback, EI_VOID* priv);

EI_S32 EI_MAI_VDec_UnRegisterMSGCallback(EI_HANDLE hHandle,
    EI_MAI_VDEC_MSG_Callback pfnMsgCallback, EI_VOID* priv);

EI_S32 EI_MAI_VDec_SendStream(EI_HANDLE hHandle, EiVdecStreamInfo* pstStream);

EI_S32 EI_MAI_VDec_ReleaseFrame(EI_HANDLE hHandle, EiVdecFrameInfo* pstFrame);

#endif
